/*
 * ViewTable.h
 *
 *  Created on: 2011-1-7
 *      Author: Administrator
 */

#ifndef VIEWTABLE_H_
#define VIEWTABLE_H_

#include "ListBox.h"
#include "ViewTableData.h"

class CViewTable : public CListBox
	{
public:
	static CViewTable* NewL(const TRect& aRect, const CCoeControl* aParent);
	static CViewTable* NewLC(const TRect& aRect, const CCoeControl* aParent);
	virtual ~CViewTable();
	
public:
	void setTableData(CViewTableData* aTableData);
	CViewTableData* TableData();
	void RefreshTable();
	
protected:
	CViewTable();
	
protected:
	virtual void Draw(const TRect& aRect) const;
	
private:
	CViewTableData* iTableData;//not own
	};

#endif /* VIEWTABLE_H_ */
